﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;


namespace Pyramid_Game
{
    public class test2 : GameAnimation
    {
        Texture2D texture;
        Texture2D idle;

        public test2(int x, int y, int width, int height)
        {
            Initialize(new Rectangle(x,y,width,height));
        }

        public override void LoadContent(ContentManager content)
        {
            texture = content.Load<Texture2D>("Texture/Jump");
            idle = content.Load<Texture2D>("Texture/Idle");
            animationCollection.Add("Jump", new Animation(texture, 48, "Jump", false, 0.05f));
            animationCollection.Add("Idle", new Animation(idle, 48, "Idle", true, 0.05f));
            animationCollection["Jump"].NextAnimation = "Idle";
            currentAnimation = "Jump";
            PlayAnimation("Jump");
        }

        public override void Update(Touch touch,GameTime gameTime)
        {
            base.Update(touch, gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);
        }
    }
}
